package com.jiyun.jiyunmall.common.utils;

/**
 * @author 86156
 * 文件名: ResultCode
 * 创建者: Z奇
 * 创建时间:2022-08-10 17:12
 * 描述: 枚举类型，声明返回的code和msg的信息
 */
public enum ResultCode {
    BINDING_ERROR(401,"JSR303校验错误，请检查参数"),
    NULL_PARAM_ERROR(402,"参数不能为空"),
    INNER_ERROR(501,"服务器内部错误"),
    //商品业务逻辑出错
    PRODUCT_XX_ERROR(21001,"商品服务XX出错");


    private Integer code;
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
